package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.dto.Result;
import com.demo.entity.VoucherOrder;

public interface IVoucherOrderService extends IService<VoucherOrder> {
    //实现秒杀下单
//    Result seckillVoucher(Long voucherId);

    //lua脚本实现异步秒杀下单
    Result seckillVoucherLua(Long voucherId);

    void createVoucherOrder(VoucherOrder voucherOrder);
}
